package com.example.midushop.service.product.impl;

import com.example.midushop.entity.product.attr.Attribute;
import com.example.midushop.mapper.product.attr.AttributeMapper;
import com.example.midushop.service.product.AttributeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 商品规格属性服务接口实现类
 */
@Service
public class AttributeServiceImpl implements AttributeService {
    @Autowired
    AttributeMapper attributeMapper;
    @Override
    public List<Attribute> findAttribute(long attr_id, String name) {
        return attributeMapper.findAttribute(attr_id,name);
    }
}
